﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="company" codebehind="pages.company.js" include="parser|com|log|window|messager|datagrid|service|icon|mask">
    <title></title>
    <script src="../../Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="../../Scripts/soul.js" type="text/javascript"></script>
    <link href="../../Styles/Info.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            $("#_save").click(function () {
                var $guid = "0690f841-7773-445c" + com._cRandom();
                var _sCompany = "<Document TaskGuid = \"0690f841-7773-445c-9f48-a7a0427686d5\" DataGuid=\"\" DataType=\"Company\"><Guid Type=\"GUID\"></Guid><Name Type=\"TEXT\"></Name><Domain Type=\"TEXT\"></Domain><MasterGuid Type=\"GUID\"></MasterGuid><EventerGuid Type=\"GUID\"></EventerGuid><Telephone Type=\"TEXT\"></Telephone><EMail Type=\"TEXT\"></EMail><MasterType Type=\"TEXT\"></MasterType><SubType Type=\"TEXT\"></SubType><Order Type=\"LONG\"></Order></Document>";
                var $xmlObj = com._cGetXmlObj(_sCompany);
                $xmlObj.find("Document").attr("DataGuid", $guid);
                $xmlObj.find("Guid").text($guid);
                $xmlObj.find("Name").text("苏州客运管理处3");
                $xmlObj.find("Domain").text("所属的域名");
                $xmlObj.find("MasterGuid").text("dz83d877-60f2-4453-8075-9b37112b3590");
                $xmlObj.find("EventerGuid").text("znjte669-3dc6-4e6c-bb03-1304871662f1");
                $xmlObj.find("Telephone").text("1231232");
                $xmlObj.find("EMail").text("kalan2@163.com");
                $xmlObj.find("MasterType").text("主类别");
                $xmlObj.find("SubType").text("子类别");
                $xmlObj.find("Order").text("3");
                soul.services.com123 = {};
                soul.services.com123.taskguid = "0690f841-7773-445c-9f48-a7a0427686d5";
                soul.services.com123.dataguid = $guid;
                soul.services.com123.datatype = "Company";
                var $result = service.EasySetData("com123", false, $xmlObj[0].xml);
                if ($result == "0") {
                    soul.grandfather.Messager.show({
                        title: '信息提示',
                        msg: "保存成功!",
                        showType: 'show'
                    });
                }
                else {
                    soul.grandfather.Messager.show({
                        title: '信息提示',
                        msg: "保存失败!请联系系统管理员!",
                        showType: 'show'
                    });
                }
            });
        });
    </script>
</head>
<body style="padding: 1px;">
    <table id="businessInfo" cellpadding="0" cellspacing="0">
        <tr>
            <td class="label" style="width: 100px;">
                单位名称：
            </td>
            <td>
                <input id="_name" type="text" class="easyui-validatebox" required="true" missingmessage="不能为空" />
            </td>
            <td class="label" style="width: 150px;">
                单位域：
            </td>
            <td>
                <input id="_domain" type="text" class="easyui-validatebox" required="true" missingmessage="不能为空" />
            </td>
        </tr>
        <tr>
            <td class="label">
                单位法人：
            </td>
            <td>
                <div style="margin: 0 0 2px 0;">
                    <input id="_company_2" class="easyui-combobox" value="" style="width: 150px;"></div>
            </td>
            <td class="label">
                事务处理人：
            </td>
            <td>
                <div style="margin: 0 0 2px 0;">
                    <input id="_company_3" class="easyui-combobox" value="" style="width: 150px;"></div>
            </td>
        </tr>
        <tr>
            <td class="label">
                联系电话：
            </td>
            <td>
                <input id="_phone" type="text" required="true" missingmessage="不能为空" class="easyui-validatebox" />
            </td>
            <td class="label">
                邮箱：
            </td>
            <td>
                <input id="_mail" type="text" required="true" missingmessage="不能为空" class="easyui-validatebox" />
            </td>
        </tr>
        <tr>
            <td class="label">
                主类别：
            </td>
            <td>
                <input id="_mastertype" type="text" required="true" missingmessage="不能为空" class="easyui-validatebox" />
            </td>
            <td class="label">
                子类别：
            </td>
            <td>
                <input id="_subtype" type="text" required="true" missingmessage="不能为空" class="easyui-validatebox" />
            </td>
        </tr>
        <tr>
            <td class="label">
                序号：
            </td>
            <td>
                <input id="_order" type="text" required="true" missingmessage="不能为空" class="easyui-validatebox" />
            </td>
            <td colspan="2">
                <a id="_save" class="easyui-linkbutton" plain="true">保存</a> <a id="_close" class="easyui-linkbutton"
                    plain="true">关闭</a>
            </td>
        </tr>
    </table>
</body>
</html>
